package com.gitee.xmhzzz.component.mqtt.client.config;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.SuperBuilder;

import java.util.List;

/**
  * @ClassName
  * @Description 配置项
  * @Author wzq
  * @Date 2024/1/10 16:26
  * @Version 1.0
  */
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@SuperBuilder(toBuilder = true)
public class MqttConfig {

    private String appId;

    private String appSecret;

    private String address;

    private String username;

    private String password;

    private ListenerInfo listenerInfos;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class ListenerInfo {

        private String host;

        private int port;

        private boolean ssl;

        //订阅的topic
        private List<String> subscribeTopics;
    }

}
